package com.example.kotlinlearn.kotlinLearn



fun main(){

    SingeLeton.add(1,2);
    val singeLeton = SingeLeton
    singeLeton.printSingeLet()
    val s = SingeLeton
    s.printSingeLet()
    //在这里s和singeLeton是同一个对象

    val list = SingeLeton.getRandomList()
    println(list)
    val map = SingeLeton.getHashMap()
    println(map.toString())

    val l = setOf(1,2,3,435,454,65,768,87,9797,97,79797,868)
    val max = l.maxOf { it }
    println("最大值为:$max")
    val l_list = l.map {
        val rand = (Math.random()*100).toInt()
        val rand1 = (Math.random()*100).toInt()
        rand + rand1 + it
    }
    println(l_list.toString())
}
